package scau.mis4.chanyulin.entity;

import scau.mis4.chanyulin.base.common.Unique;

import javax.persistence.Transient;
import java.util.Date;

/**
 * Created by cyl on 2018/03/27.
 * GoodDetail实体类
 */
public class GoodDetail extends Unique {
    private Double referencePrice;

    private String size;

    private String color;

    private String gender;

    private String age;

    private String stockId;

    private String goodId;

    private String thumbnail;

    // ----------------------------------

    @Transient
    private Stock stock;

    // ----------------------------------

    public GoodDetail() {
    }

    public GoodDetail(Double referencePrice, String size, String color, String gender, String age, String stockId, String goodId, String thumbnail) {
        this.referencePrice = referencePrice;
        this.size = size;
        this.color = color;
        this.gender = gender;
        this.age = age;
        this.stockId = stockId;
        this.goodId = goodId;
        this.thumbnail = thumbnail;
    }

    @Override
    public String toString() {
        return "GoodDetail{" +
                "referencePrice=" + referencePrice +
                ", size='" + size + '\'' +
                ", color='" + color + '\'' +
                ", gender='" + gender + '\'' +
                ", age='" + age + '\'' +
                ", id='" + id + '\'' +
                ", stockId='" + stockId + '\'' +
                ", goodId='" + goodId + '\'' +
                ", thumbnail='" + thumbnail + '\'' +
                ", stock=" + stock +
                '}';
    }

    public Double getReferencePrice() {
        return referencePrice;
    }

    public void setReferencePrice(Double referencePrice) {
        this.referencePrice = referencePrice;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getStockId() {
        return stockId;
    }

    public void setStockId(String stockId) {
        this.stockId = stockId;
    }

    public String getGoodId() {
        return goodId;
    }

    public void setGoodId(String goodId) {
        this.goodId = goodId;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public Stock getStock() {
        return stock;
    }

    public void setStock(Stock stock) {
        this.stock = stock;
    }
}
